/*    */ package com.cr.common.xss;
/*    */ 
/*    */ import com.cr.common.utils.html.EscapeUtil;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletRequestWrapper;
/*    */ 
/*    */ public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper {
/*    */   public XssHttpServletRequestWrapper(HttpServletRequest request) {
/* 19 */     super(request);
/*    */   }
/*    */   
/*    */   public String[] getParameterValues(String name) {
/* 25 */     String[] values = super.getParameterValues(name);
/* 26 */     if (values != null) {
/* 28 */       int length = values.length;
/* 29 */       String[] escapseValues = new String[length];
/* 30 */       for (int i = 0; i < length; i++)
/* 33 */         escapseValues[i] = EscapeUtil.clean(values[i]).trim(); 
/* 35 */       return escapseValues;
/*    */     } 
/* 37 */     return super.getParameterValues(name);
/*    */   }
/*    */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-common-4.7.0.jar!\com\cr\common\xss\XssHttpServletRequestWrapper.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */